#include <stdio.h>
int main()
{
	int a,b,c;
	int sum,mul;
	for(int v=200;v<=300;++v)
	{
		a=v/100;
		b=(v%100)/10;
		c=v%10;
		sum=a+b+c;
		mul=a*b*c;
		if(sum==12&&mul==42) printf("%d\t",v);
	}
	printf("\n");
	return 0;
 } 
